# Contributor: Duncan Bellamy <dunk@denkimushi.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=py3-pytest-freezegun
pkgver=0.4.2
pkgrel=0
pkgdesc="Wrap tests with fixtures in freeze_time"
url="https://github.com/ktosiek/pytest-freezegun"
license="MIT"
arch="noarch"
depends="python3 py3-freezegun py3-pytest"
makedepends="py3-setuptools"
source="$pkgname-$pkgver.zip::https://github.com/ktosiek/pytest-freezegun/archive/refs/tags/$pkgver.zip"
builddir="$srcdir/pytest-freezegun-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py install --root="$PWD/test_install"
	PYTHONPATH="$(echo $PWD/test_install/usr/lib/python3*/site-packages)" pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
fbbe8a2fa6dffb33d2042bdd96438f00f6bc4b8dac8f5b4b20363bb9946f4f8060ed359e1f2c26258e78a24e4bd305c89c854318a2f075ae71856f6e37c15bd1  py3-pytest-freezegun-0.4.2.zip
"
